package com.woniuxy.charin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @TableName group_info
 */
@TableName(value ="group_info")
@Data
public class GroupInfo implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String groupName;//群组名称

    private String groupType;//群组类型

    private String timePeriod;//时间周期

    private Integer participantsCount;//参与人数

    private String publishStatus;//发布状态

    private String groupStatus;//群组状态

    private Date publishTime;//发布时间

    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private List<ChargingPile> piles = new ArrayList<>();

    @TableField(exist = false)
    private List<GroupRule> rules = new ArrayList<>();
}